<!DOCTYPE html>
<html>
<head>
<title>积分管理系统</title>
<link href="__PUBLIC__/Intesys/AdminX/css/style.css" rel="stylesheet">
<link href="__PUBLIC__/Intesys/AdminX/css/style-responsive.css" rel="stylesheet">
</head>
<body class="login-body">
<style>
	.input-group input{ margin-bottom:0 !important}
	.input-group-addon{ color:#999; min-width:39px;}
	.login-wrap>div,.form-signin-heading .iconImg{ display:none;}
	.module-quick .quick-form,.module-static .static-form,.module-quick .static,.module-static .quick{ display:block;}
	.text-main{ color:#65cea7}
	.iconImg{position: absolute;right: 5px;top: 5px; cursor:pointer;}
</style>
<form action="__URL__/dologin" name="dologin" method="post" class="form-signin  module-static">
    <div class="form-signin-heading text-center">
        <h1 class="sign-title">用户登录</h1>
        <img class="iconImg quick" src="__PUBLIC__/Intesys/AdminX/images/qrcode.png" alt="快速登录"/>
        <img class="iconImg static" src="__PUBLIC__/Intesys/AdminX/images/computer.png" alt="标准登录"/>
        <img src="__PUBLIC__/Intesys/AdminX/images/login_logo.png" alt="网站LOGO"/>
    </div>
    <div class="login-wrap">
    	<div class="static-form ">
            <div class="form-group">
                <div class="input-group">
                    <span class="input-group-addon"><i class="fa icon-home"></i></span>
                    <input type="text" class="form-control" placeholder="用户名" name="username">
                </div>
            </div>
            <div class="form-group"> 
                <div class="input-group">
                    <span class="input-group-addon"><i class="fa icon-lock"></i></span>
                    <input type="password" class="form-control" placeholder="输入密码" name="password">
                </div>
            </div>
            <div class="registration modal-open">
                <a href="{:U('forget')}" class="pull-left">
                    忘记密码？
                </a>
                <a href="{:U('signin', array('code' => $InvitationCode, 'gid' => $_GET['gid'], 'pid' => $_GET['pid']))}" class="pull-right">
                    立即注册&gt;
                </a>
            </div>
            <button type="submit" class="btn btn-login btn-block">登 录</button>
        </div>
        <div class="quick-form text-center">
        	<img id="test1" width="200" height="200" src="https://mp.weixin.qq.com/cgi-bin/showqrcode?ticket={$tiket.ticket}">
            <div  class="registration">
                <div>手机扫码 安全登录</div>
                <div>使用<span class="text-main">微信</span>扫描二维码</div>
			</div>
        </div>
    </div>
</form>
<!-- End Login Screen -->
<script src="__PUBLIC__/Intesys/AdminX/js/jquery-1.10.2.min.js"></script>
<script src="__PUBLIC__/Intesys/AdminX/js/bootstrap.min.js"></script>
<script src="__PUBLIC__/Intesys/AdminX/js/modernizr.min.js"></script>
<script>
	$(document).ready(function(e) {
		$(".quick").click(function(e) {
            $(".module-static").addClass("module-quick").removeClass("module-static");
        });
		$(".static").click(function(e) {
            $(".module-quick").addClass("module-static").removeClass("module-quick");
        });
	    var sit = setInterval(function(){
			$.post('{:U('weixinDoLogin')}',{'pass':1, 'InvitationCode':
			'<php>echo $InvitationCode</php>',
			'gid':'<php>echo $_GET['gid'];</php>',
			'pid':'<php>echo $_GET['pid'];</php>'
			},function(data){
				if(data.status == 1){
					clearInterval(sit);
					window.location.href = data.url;
				}
			},'json');
		},2000);
	});
</script>
</body>
</html>